<?php

use Illuminate\Database\Seeder;

use App\Models\ActivityModelTemplate\ActivityModelTemplate;

class FixModelTemplateSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        ActivityModelTemplate::query()
            ->where('name', '投票')
            ->where('template', 'poll')
            ->where('url', '/act/poll/index.html')
            ->update([
                'thumb' => '/images/admin/poll.jpg',
            ]);
    }
}
